package org.dizem.groupon.service;

import org.dizem.groupon.model.domain.OrderFormEntity;

import java.util.List;

/**
 * User: dizem
 * Time: 11-7-21 下午2:50
 */
public interface OrderFormService extends ServiceSupport<OrderFormEntity> {
	public void save(OrderFormEntity orderForm, String username, int itemId, int number, float price);

	public List<OrderFormEntity> getWaitingList(int firstResult, int maxResult);

	public List<OrderFormEntity> getSuccessList(int firstResult, int maxResult);

	void acceptOrder(int id);

	int getSuccessCount();

	int getWaitingCount();

}
